package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.TeamPerformanceListEntity;
import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.request.GetTeamSalesRequest;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.List;

/**
 * Created by 71468 on 2017/10/20.
 */

public interface GetTeamSalesListContractor extends BaseContractor {
    interface Model{
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);
        void getSalesList(GetTeamSalesRequest request);
    }

    interface View extends BaseView{
        void onGetListSuccess(List<TeamPerformanceListEntity> list);
    }

    interface Presenter{
        void getList();
        void getListByASC();
        void getListByDESC();
        void getListBySortMoney();
        void getListBySortCount();
        Presenter setGroupInfo(String groupCode);
    }

    interface CallBack extends BaseHttpListener{
        void getDataSuccess(BaseResponse<List<TeamPerformanceListEntity>> response);
    }
}
